Modified m_loop type int -> long long