Added support for bool type.