Combine all m** in the same loop. There is no reason for separate loops.