Converted uri lookups to functions to allowed chains