Updating to handle proper monit port assignment at stack level.