Complete conversion of define module