Add useful functions to functions