@iglesias I have changed this to switch case. Have a look please!