Update output and F_measure