Replaced list with array
Using code from platform ver. 5