Initial comit
Optomized threshold