I get a problem when I try to get boolean value from a function. I am trying to make detectiona variable true when detection is done. It works fine. But it just