registerModel has been replaced with new package-aware version.