Allow for base_uri to be passed as a parameter