Random bits of code I've written.