added Require all granted where needed.