Try to use double buffering