Add support for double type