Changed fields and flush method in order to enable updates of the xml
file.