Added an option to the controller to give parameters.