New functions

I've added a couple of new functions to the library.