See Martin's answer in post #3. I think that does what you want.