Compilation of some functions to make my coding a little easier.