Reverted change to workflow security method as it was causing issues for datasets.