[wip] Handle multiple remotes in some functions.