Added option to automatically run the backend code periodically.