Move 'triggerFrame' logic to exec()