SMS: Functional dynamics of phytophagous insects