Added xml reading