Added algorithm for XMLSerializer