Double Buffering Mostly Working