1. Change json key to control callbacks
2. Add api for calling from running script
3. Update documentation
4.Change script error handling to output to event log.