Added session and context listeners.