Add check_finished flag int the period_execute rpc.