Changed formula, this improves detected size accuracy