Refactored code for chunk support
Added FindGLM module