Updated to take advantage of new api for training buildings.