Added use of locking module.