Added automatic overcurrent compenstation.