First version as a bash script.