Register functionality added.