Use closure to create the PrivilegedActions