Fixes to boolean functions.