A collection of some useful code