Added string interpolation for localization. Cleaned up some unused code.