Use mode to pickup the right variables