Legen is now its own directive
Refactoring around the blip functions to make them hopefully easier to read