Almost done with the switch. TODO : manage the ttl of the lines.