Extract pulse-output to new script