Added line deletion and started reorganizing with sendRecv