Adds runCode method