MVA: Fixed script to use with temp folder.