Merging in trigger functions to the IMU