Kiva RTP helper code