Added autoreset option to output ports.