Permissions issue in script. Fixed