Converted prints to debug prints