Added printouts for debugging