Work on GUI and XMLwriter.