Moved the handling of the import statistics into its own package. Untested.