Hard-code flag/mod slot multipliers for clarity, tidy up