Open in TheBrain

Refactor Logic