Implement event and buffer.