Added more locks.