added stop functions - stop processing lines if a condition is satisfied
added stop functions - stop processing lines if a condition is satisfied