Added improved version of glean