Added code to generate yields from results class