Added logic to ignore imports already under package.