Added InitRegistrationScript