Added shell command locking.