Added internal RunCommand.