Adding the functionality to sms registraton.