Started working on a new receive call.
Basic protocol implemented. Still some work to do.