Added second version of add() with flag to ignore imports.

Change-Id: I83ce38e31cffa51591b7034460e4f3d117873a93