Added defaults and checks for options.permissions