Helper function for managing parameters
First version of Dieckmann and Dobelli 1999