Added locks.