Permission registry implemented, working.