Should use RE in mprt, but this works