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

Change-Id: I253691762186bea84e1001e0f886567d24760598