Refactored mm.h