Use a proper logging framework and convert the print statements to logging statements: - Information about the layers should be debug - Information about timing should be info