Added some other useful functions.