Added logging facilities.