Update mackey.php

Split some stuff into an extra file because two is better than one.