nit: Favour full words rather than abbreviations, ie: res -> result.