Added the uri->class function.