Ability to disable registration.

Fixes: #1