Update the bash todo function to use the vars