Partly finish the mm_init