Accept res as argument to parse