Added sendDatapoint and createDatastream functions