Finally managed to get scheduleLoader to work