To use this better for scripting, it would be neat to replace the console.logs by events.
To use this better for scripting, it would be neat to replace the console.logs by events.