variables now saved to workspace and calculate script is easily called