Function createRuntime