Cleaned up top rated snippets function.