Some fuzzy logic improvements