Fixing CS, added upgrading file