Fixed some web port bugs and vestigial code.