Dump some old code I found laying around.