Changed logger to log4j.