Use permissions when we override WG.
Cleaned imports.