Commented out the longest_valid_segment_fraction as Adolfo tested it works better without it. Search for a more optimal value it's to be done soon