Added some array functionality