Made some last minute changes.

added a verbose parameter to show the problem.