Implemented QUIT and MODE events