Array functions.