Added utility xyz writing function.