Worked out while loop in long_short_values

Need to clean up long_short_values and then duplicate code to produce
next lower number.