Added basic logging facilities.