Cleaned up the code to prepare for presenting.