Return just boolean and not Boolean on permissions.
Change the format of the debug output.