Adding missing function _createStub