added result functionality