Update case_functions.sh