register
Register functionality.