Added debug() calls.