Allow passing of own uri and method.