Added port test code.