Threshhold class and misc added