Added application level port checking