Fix mac_learner. Add model checking perf measuring code