Update main
Update array generation