Cleaning up the Map object