Added register method
Merged upstream
Merge pull request #38 from RWOverdijk/feature/register

Feature/register