Some of the sexier code I've written.