Added support for output types string, boolean, integer and number