Cron service implementation in Erlang