Implementing the nonmax method.