Make run-sync generic