instead of printing the last set numeric value. Initial diff from Laurence Tratt with some enhancements added.