Added a parameter to automatically test some lagrangian configurations