added trigger and functions for measurements completion