Is there any function in Erlang which gets called *automatically* after a given amount of time and once it is triggered it should automatically be called after given amount of time, there should be no need to trigger it again and again. I am writing a module in Erlang which does cleaning task on `ejabberd server`. This module once triggered needs to be called daily automatically. Any pointers?