Fixed bug where onRecieveData functions were thread local.