Adding registrations code.