Implemented discard for circular buffer.