Add endpoint 0 setup code