Added open document method.