Remove print and add socket to valid keys