Turn booleans into numbers as well.