Changed the Code to ensure that the exchange is created.