Updated code to manually set last app version to 0 to be concentrated in file.