Add permission provider code.