Added paremeters for resistance.