Fixed scheduling issue. Fixed passing correct time to schedule. Fixed other issues with cleanup and other action executions.