Added debug log facility.