Started writing code to send piece in blocks

I haven't finished implementing yet - no major code changes made