Fixed major bug with declaring duplicate vars in main class.