EricL - Added reference code from previous iterations of this project.