Made imports optional according to the configuration file.