Initial commit of a bunch more functions from my general libraries