Modified scritps to run in Condor.