Double Buffer implemented