Trying to clean up the interface for setting the interface mode.