Useful functions I write that I might want to reuse.