Automatic segment pills