Add debug code in Receive