Implemented data buffer purge logic.