Ref T4 updated script and permissions