Updates to MAC script