Bugfix - updating triggers to use "ts", not "time"