Removing unnecessary refresh() from snippets