Added RPC stuff to get Events