Added logging to import hook