Do I need resistor when connecting battery and electromagnet? And will the battery discharge at the maximum discharge rate without the resistor?