Refactored to not require JSON stdout parse.
Refactored run and runSync return values.