Reference the correct variable EventSource