First version of MAC-Gen