Adding support for triggers and stats APIs