[WIP] Refactor MSM

In theory, the logger should be better in every way. But in practice, it's impossible to set up properly