Reworked receive loop.
This time less retarded.