Assorted wee bits of code