Moved logic to enable plugins to its own function
Added call to enable_required_plugins()