Added log4J library and some code, requires configuring.