Initialize result as array