Change getUri to getParamsString, remove unused trace