Almost done debugging the max program