Added checking ports and slots