Deal with results and prep to return values