* Refactor some code.