Change arrays to resizible arrays (quite big change)