Updating code to use angular registry.