Updated Realms functionality.