Check Aum81's faq; it includes an example that does just that.