Apparently these flags are needed now or else we get an Access Denied error.