Added check to see if the data was sent correctly