Split tempo fns into new module