Implemented ring buffer