Thanks, I tried updating that but then I saw the below code and tried that as it is pretty much what you said.