Update classification functions.