Changed sequence code to fix possibly command send bug. Could have introduced a problem with not incrementing the values correctly.