Encapsulating it all in RemoteDOM function.