Changed logic to only send new data to the server