CommandRunner extracted out