This needs to be synchronized.