Thanks Jochen, I've updated the function :-)