Added "$trusted_d" variable.