Plugin memory: Moved cache above used.
Refactor: Make plugins into classes.
Refacter: Make plugins into classes #2
Fix error after refactoring
Allow multiple instances of plugins.