Instantiate plugin on proper hook