Added synchronized to event write