Sorry, my bad. As soon as I added the IF expression it worked perfectly. Thanks for noticing that in the code.