Changed output to result