Added register handler
Merge branch 'master' of github.com:ricallinson/atomicly