Added debug capability.