buy a 7 way bypass relay and then wire it in to the rear lights.you then connect towbar wiring to the 7 way bypass relay.simple
If you are Uk based and wiring a 13 pin plug make sure it is wired correctly as it's part of the MOT test and must work correctly.7 pin not currently part of the MOT
Steve, March 2013