Added ability to pass settings from controller to the helper