Finished main import routine