Added support for internal triggering