Added log4j for logging.