Added define debug checks.