First working version of ftrigger