Create Pastry protocol