Changed some registration code.