Add handling of invalid method