Altered variable name and removed unnecessary extra output port.