Some edits to deploy and invoke scripts for calrity