Added stub code generation