Added basic logging facility.