Added function to measure fScore