Fixed issue where bytes were processed in reverse order