Adding overload which accepts Uri

nit: extra blank line