Having race conditions with Edts