Added main method to show problem with typing a value in.
Attempted fix to RangeBox which had become very slow.