Change number of loops for each Tx to unsigned int instead of just int