Added more snippets and test scripts.