Use S_MIRROR, R_MIRROR and R_PRIO instead of hard-coding it.