Wasn't pretty, but didn't have to be for URI