RAPI functions tested and working