How to embed XTA commands in your program