Adding vars to coordinate which phase input is used for commutation