Added some base code for the stub generator;