Reworked the order of the functions in the datapath. We also need to change the schedule.