Added new version of stub registrator.