Added the setUri() function