Fixed bugs to with threshold (now calculate for all points every time threshold updated)