Now written in Bash as well