Made up a function that will read entries to array.