Added weighting based on number of characters left to type.