Can you give some example code?I couldn't find any appropriate example.I want to do it configurable.At any time should be able to start or stop.And when start it should be running by interval time.How to do it?