Various code snippets and proof of concept code