Making the most of livestock buildings