Adds functions to rpc