Add output of command to console
Remove unnecessary code