Implement freeze/unfreeze.