Added n_rows field to task structure.