Add square example, handle timeout in receive