Implement the RFunctions