Removed a bug where data was being sent twice.