Enhance plugin API