New functions for working with arrays