Replacing deleted code