Adding code that was worked on after my qual.