Readded print statements removed while debugging