Added a simple crontab-like function for time based triggers