Creation of endpoint