Added option to run and check folders instead of polling for folders