Added cloudgen code