(#9) Command output handling improvded.