Made changes to send counter values as an int instead of as hex.