Removed m_prime in m_loop. Was the cause of an infinite loop