Skeleton code for result handing