Add dependancies and fix m_log