Slight debugging; introduced some console.writelines