Add useful functions to arrays