Moved array functions over to their own file.