Adding set_result and get_result