OVERSIZE implementation

Fixes #5783.
Merge pull request #5804 from KA101/XL-preservation

OVERSIZE implementation