Client, using rpc. Actually works a bit now.