Detection doesn't works, has to be debugged