Improve scheduling algorithm
Update sample files.