Keep track of max lines