Added a dpuble buffer