Added logging for analysis import. Using transaction.