Added autobuy upgrades option and fixed research issue.