Add support for running agent via cron