Added a few more functions to the nputils.