Adding rmi