Add function to detect available interfaces