The `method` parameter seems to be unused. Shouldn't the method name be checked somewhere?