Minimal changes: Added debug mode and adapt is invoked over the original object