Add timing option for testing; simplify recv.