Use constants for mode in interface manager.