Merge two commands