Adding a read schedule function