Adds initial fromArray logic