Update rt_functions.sh

Adding additional tweaks