Fixed logging to now use log4j.