Added unregister function; added return cached result for registration method