An arrangement for control in an animal handling system includes an automated teat preparation station for preparation of teats of animals to be milked and a separately located milking system for milking of the animals. The arrangement is operatively connected to the teat preparation station and the milking system and includes a unit estimating a time left until the milking system is ready to receive a further animal to be milked a unit estimating, for a animal present at the teat preparation station, a time for preparation of the teats of the animal and initiating unit initiating automated preparation of the teats of the animal at a point of time, which is dependent on the estimated time left until the milking system is ready to receive a further animal to be milked and on the estimated time for preparation of the teats of the animal.