Added functions to copy filterred rows.