Adaptive margins