Update sl_functions.sh