Implement pale import.

Still some outstanding problems with import.