Gateway Code for X2 and X2e