Refactor the code.
Update with notes.