http://forum.topeleven.com/tutorials-guides/4621-buildings-upgrades.html#post51926