Added work I did a long time ago.