Improved auto-resizing and localizaton