Finished array function.