During upload, equal commands are now reused. (Solved issue #41)