Make local_to_remote and remote_to_local static