Dynamic state variables selection