Pass updated flags to initPackages
Cleared imports