Refactor glex + add refactored four