Changed array function.