Removed the openGL part of code