Update interface detection logic