Raw implementation of Luna's MacroManager #12