Use SQL for existing-paths function.
Redirect to app after scan starts.