Added code for new registration