I changed the program in order not to start subscription before initializing detector