Cleaned up port manager.