Updated to check more then first line for line length