Added recognizing some basic modes.