Triple buffering hack added