Miscellaneous code for fun.