Hi Patrick, I attached to this email a new patch for the amanda helper with the new API to allocate memory for an expectation. As you could see, I also modified the API following your suggestion. Please have a look at it, if you are fine with it I'll send the updates for expect-optimize patch in pom-ng to Harald ASAP. best regards, Pablo