Refactored glower to a library