Removing unecessary snippets