Added a way to run actions immediately or manually.