Improve processing snippets