SSE plugin Refactored