How to freeze document numbers?