Updated to be compatible with latest GET REST API. Add option to buffer console output or not - turn off to save memory.