After some time on this function, I think mon_secret have to be rewrited instead of doing a crapy final test :)