Bits 'n pieces of code for miscellaneous use :)