Added possible logic for adding a socket. And also possibly deleting appliances