Add useful functions