Fixed the way the scheduler talks on the socket to handle the required new JSON format.