Code snippets from previous work