Switched from Event Handling to a scheduled task