Modified to use new mac script