Implemented and tested buffer and started scheduler code.