Add several useful functions