Splitting up parsing and sampling