First version of MAC update script