Needleman-Wunsch alignment now works for the first loop of extend_match