Added support for double type.