Use generic collections.
Simplify inflating.
Add whitespace to help readability.