Began work on the reduction code