Improvements on GL example and related classes.