Add options loop to the ctf script