Figured out bye scheduling - final algorithm to be implemented