Added logging facility.