Add output return from run and runLocally