Changed the order of the parameters passed to the Mode Constructor to be
consistent with the rest of the API