Added setAutoCue function