Moved IMode enum into imode.cs.