Initialize plugin correctly