Detection using lib