Improves poll submission and xml generation