Nice. Just saved me fiddling around trying to sort this problem out.

M