Optimsed The NhElim routine.