Added localization and file I/O