Removed threshold argument from connected component code