Added tmexec function