Had to use object instead of array