Two phase import