Implement registration functionality.