Change imports. Fix warning of deprecated enum value.