Added support for multiple line schedule.