Add function to abstract xmlrpc calls