Make fit() and segment() inseparable