Removed unnecessary code.
Port check fix.