(sorry, I missed that extra "IF" in your code, first time around)