Unify the calls to exec to remove duplication