Writing a _populateRemoteCommands method.