Added log4j functionality