Include dynamic programming conditions.