Restart scheduler every hour, fixed a few minor issues
Fix wrong argument passed.