Updated initialize to allow for local file and URI