Added schedule function to the package