Dynamic branch lookup