Add Bool functions with pattern matching.