This is basically shell scripting, so use the mode
Make variable names clearer.