Ruby version of processing script and integration with new platform