Changed print statement to log4j.