Archived old schedule function, new one TODO