Moved from arraylist to int[]