Add registration code