Adding TPFactory