Removed some superfluous code from the snippets.