Added fooltmux function