In general, when should herbs be added to a cooked dish?

A: At the beginning of cooking
B: During the middle of cooking
C: Just before serving
D: After the dish is cooked.