Added local/remote modes, and multiple remote dispatching