Changed to plugins_enabled.
Slight refactoring and commenting.