Added clamp on k-value