Thanks Richard this will be a nice addition to another script