T function.