Some old code I've wrote.