Added tuning feature, but causes runtime exception with third party library