Added break to edge filter to avoid unnecessary runs (also leading to errors)