Adding test of completeness before looking for the solution