This feature does not work when running as a scheduled task in the background