Added array function.