Added code for wire dipoles