Most of the handling for receiving.