Addition of User Function to TS