Removed duplicate "$result ="