Allow specification of endpoint