Changed Modes to ModeConstants, using string constants rather than an enum