Why do Snakes have Forked Tongues?

It is often hard to determine why an animal is designed the way that it is. One theory as to the forked tongue of a snake is that it helps it to determine direction through both smell and taste simultaneously.