Added opengl functions
Moved away from automatically running everything in one thread