Add array generate support