Small refactor of run task

I had the original task working and fubar'ed it during refactoring before commit. This is the way that it was intended. 

Cheers,

/V