KBase service code for RDP