Modified so that it now uses XML to store list