Implement the first phase of nmm (minus takes)