Updated extensions

Modified scripts to use switch in place of if