Add maxNumberOfLines
Pass maxNumberOfLines, remove the extra created flags. Pass the same instance of exitFlag
Dont create a new exitFlag in consumerResult
Merge pull request #27 from mibrahim/master

Dont create a new exitFlag