Here's a valuable treatise on the topic: