With knowledge of all relevant facts.
In the manner of one who knows.
By serendipity; by blind luck in combination with wisdom; by fortunate accident.