Implemented mate threat detection into control structure