Generate correct arrays.