Use m to compute frontier
...