Tweaked the way resources are registered with the repository.