Added TripleBuffer for concurrency