Various of code snipets that I use.