Fixes warnings, bugs. Reduces source code duplication. Simplifies, clarifies source code.