Localization, variable fixes, fix player function