Making triggers better