Added a function and constants for Mapping Modes.