Simplified code by using `runCommand`.
Simplified code using `runCommand`.