Start generation code