Switch to simpler bash script