Added some array-specific functions