Extra logging to try and work out why clamping doesn't always work