Implemented registration

Closes #42