Replaced debugging println! statements with debug!