Wworking implementation for MML