Added the possibility to fetch results as array instead of string