First version of to filter reads