Check command output improved