Worked more on double buffering