Add condition for add additional rows.
Remove unused method.