Refactor sending long data