Removed the 'mode' array from the Slim  constructor.