Rewrite OpenGL thread to utilize Handler