Add get_mode(const char *mode) to Connector class.