Added preparation run and new code snippets