Added implementation for registerScreen.