Refactored plugin init methods