Commented out possibly unneeded double buffering