Fix term ternary and add manual cron trigger