In onReceivedElement, renamed arg data to element.