Avoid array usage for dash compatibility.

Havent updated my local branch in the former PR before I created it.. Fixed the change in their as it still used the array.