Register permissions

No idea why this hasn't been added until now...
Merge pull request #35 from alxy/patch-2

Register permissions