Add code for scheduling.
Add makefile.