Added CommandRunner class and its Run function