added castEverySeconds function for instance for dot spredding