Updates margins.