Removed code that was only necessary if nested repeats were possible.