Removed unused imports.
Set model module from its installed app if available.