working
Merge remote-tracking branch 'origin/master'
Add register function