Added external triggering support