Wrote executeSync (untested)