No need for a lock, this function is synchronous.