Added a small delay for the xml validation