Fixes permissions bug and simplifies radio detection