Added m_factor instead of using seed