Added slider for leniency for collision detection