More updates for the array post
Fix code issues in Arrays
Split preparation and generation tasks