Implemented Twig extension. Added auto-detection for deleteAfterCopy