Modified logger to provide more debugging info!