Implement mm_init