Modified to enable for local files