[TW182] Updated qc command to be more secure with added checks.