Use registerObject instead of registerAlias