Changed to vector output