Schedule_worker is now functioning properly
Still need to implement main feature.