Added logging in markMigrated