Updated type of MCLogEnabled to int instead of bool.