Remove duplicate function: getResult