Added logging via log4j.