Added TPair structure