Doh! You beat me by seconds, I only worked this out the other day myself. Your answer is more concise than mine was though.