Up procs
Update ruby script.
Pull out some vars and remove global done