added new options to control lambda optimisation