Added more documentation regarding thread-safety.