Added stop, freeze and unfreeze functionality.