A much quicker solution with the same effect is to hold each one beside the fence, show them the fence as it were, and then touch them off it three times. You get shocked too, so it sort of evens up the score! After that they will have learnt to respect the fence, and so indeed will you! Oh, and make sure your fence is mains powered, I don't find the battery ones much use as you have to keep monitoring them,