Refactor: pass results as param