Minor refactoring
Normalize "g:gate_filters" at startup
Move things around