Completed scheduler preliminary algorithm
Updated scheduler to time out after completing tasks