Removed print statements (should use logger).