Changed tmenu() signature to be more intuitive.