Adding clear() to wipe all data from buffer.