Changed to use log4js logging