Added back in write for debug purposes
Splitting code is essentially working
Continue building the program