Migrate explorer code