Added print statements to show conditions