Refactored print statements