Add option to commit for each number of lines.