Barracks builds units at the correct time, but won't reset correctly when you kill a unit, also builds two units with the same priority which is an issue.