Added optional adjustmentFactor parameter to optimalSize method with default of 0.98.