Implement tracking and default maximum number of modes per line