Created function to import schedule