Refactoring.
Remove unnecessary lines.
Load all resources before execution.
Refactor resource classes.