Added line count limit for script