Removing print statements to use logging module for verbose output