removing m_state and cleaning up. result[0] matches.