I recall I had to place those statements there to avoid some kind of race condition at the time. I don't remember what was happening, though.