Moved the if statement down below the DNE line