+ * Once per execution time prepare the programm: detect

Nitpicking: 'program'.

LGTM.

--
Nikita Pettik