Clean up some vars and get ready to write rpcCall