Refactored find script of glow