Added log4j and removed previous logging.