Renamed onReceivedData to onReceivedElement.