added result sharing funtionality