Addded (broken) generation code